import mongoose from "mongoose"

/**
 * 评论的id _id
 * 评论的是谁 书籍ID / IssueId
 * 谁评论的 UserId
 * 评论的是啥 content
 * 评论的时间
 */

const schema = new mongoose.Schema({
    ids: String,
    userId: String,
    content: String,
},{
    timestamps: true
}) 

export const commentModel = mongoose.model('comment',schema)